package com.tensquare.test.rabbitmqtest.custom;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "itcase")
public class Customer {
    @RabbitHandler
    public void  getMsg(String msg){
        System.out.println("itcase："+msg);
    }
}
